package com.hospital.dao;

import com.hospital.entity.Department;
import com.hospital.entity.Employee;
import com.hospital.entity.Grade;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GradeDao {

    int add(Grade grade);

    int delete(Integer id);

    int update(Grade grade);

    long count(String grade_name);

    List<Grade> select();

    List<Grade> selectPage(@Param("grade_name") String grade_name, @Param("start") int start, @Param("size") int size);


}
